//
//  SAValueManger.m
//  yidiantong
//
//  Created by 黄志刚 on 2020/10/10.
//

#import "SAValueManger.h"

@implementation SAValueManger

static SAValueManger *obj;

+(instancetype)shareInStance {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        obj = [[self alloc] init];
    });
    return obj;
}

+(instancetype)allocWithZone:(NSZone *)zone {
    if(obj == nil) {
        @synchronized(self) {
            if(obj == nil) {
                obj = [super allocWithZone:zone];
            }
        }
    }
    return obj;
}

-(instancetype)copyWithZone:(NSZone *)zone {
    return obj;
}

@end
